﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KongMing.ORM.FreeSqlDemo
{
    /// <summary>
    /// 人大金仓测试
    /// </summary>
    public class KingbaseAdoDemo
    {
        public static void Go()
        {
            string localdb = "server=localhost;port=54321;uid=system;pwd=km666666;database=outsofts_main;search path=test;";
            string testdb = "server=192.168.0.166;port=54321;uid=kingbasedba01;pwd=Db20230101;Database=test";
            using var fsql = FreeSqlHelper.GetFreeSql(FreeSql.DataType.KingbaseES, localdb);
            var data1 = fsql.Ado.ExecuteDataTable("select * from table1");
            var data = fsql.Ado.ExecuteDataTable("select * from all_users ");
            int i = fsql.Ado.ExecuteNonQuery(@"
                ALTER USER king REPLICATION; ");
        }
    }
}
